var baseUrl = "http://vistatex.cn:70/"
baseUrl = "http://localhost/";
baseUrl = "http://110.41.143.6";

sessionStorage.setItem('access_token','/CtiSOOyPPQbdKsv0QS9NnKB/QgEGMKeA2oec+otGeZYTB7PN3M/tCNj4EHg5pgYKCHmFe85iBShGNefXfEZye7aPavqDU/uJJ+QMrGfUG7ki8JQAn/btkbC+MMiJS/Sl5NP2xO3bUt4C8XmPVa3Zrehw9GZmTpMKSIRAyOdWs3mr1bDOIB0BhUSDMaM/hCt+iQuNxCOborvDyxnDiU4Lg==');
sessionStorage.setItem('access_token','v0PsJmkwmx5iJ0CNINaNpTjH4KyN9B+ZWhtj2uvYYa0BybbUpeL+Iu2a7c/9CqCszkW62UqMxdSpvUTNZv1z0BGNeYyKF4FDjibEuGJjiQIxUO/rAfxdSmIek0Agt5XmzvirjAu3op1S3Ge5iON7D2G870VrKOkoWyTmwyK3YcJqyPStPuuebSzndKqtGqiK');

var reqJsonPost = {
	//二次封装jquery中的ajax请求
	ajax : function(url,data,fn){
		$.ajax({
			url: baseUrl+url, //地址
			type: "Post",
			dataType: "json",
			contentType: "application/json",
			data: JSON.stringify(data),
			headers: {
				source: 1,
				token:sessionStorage.getItem('access_token')
			},
			success: function(data) {
				// console.log("post",data)
				fn(data)
			},
			error: function(data) {
				// console.log("post",data)
				fn(data);
			}
		});
	}
}
var reqGet = {
	//二次封装jquery中的ajax请求
	ajax : function(url,fn){
		$.ajax({
			url: baseUrl+url, //地址
			type: "get",
			headers: {
				source: 1,
				token:sessionStorage.getItem('access_token')
			},
			success: function(data) {
				// console.log("get",data)
				fn(data)
			},
			error: function(data) {
				fn(data);
			}
		});
	}
}